import request from '@/utils/request'

// 查询盘点数据列表
export function listArchiveStocktaking(query) {
  return request({
    url: '/archive/ArchiveStocktaking/list',
    method: 'get',
    params: query
  })
}

// 查询盘点数据详细
export function getArchiveStocktaking(id) {
  return request({
    url: '/archive/ArchiveStocktaking/' + id,
    method: 'get'
  })
}

// 新增盘点数据
export function addArchiveStocktaking(data) {
  return request({
    url: '/archive/ArchiveStocktaking',
    method: 'post',
    data: data
  })
}

// 修改盘点数据
export function updateArchiveStocktaking(data) {
  return request({
    url: '/archive/ArchiveStocktaking',
    method: 'put',
    data: data
  })
}

// 删除盘点数据
export function delArchiveStocktaking(id) {
  return request({
    url: '/archive/ArchiveStocktaking/' + id,
    method: 'delete'
  })
}
